#ifndef ZOOM_EFFECT_H
#define ZOOM_EFFECT_H

#include "Object.h"

class ZoomEffect:public Object
{
private:
	
	Vector* center;

	float zoomFrom;
	float zoomTo;
	float zoomCur;
	float zoomDt;

	float alphaFrom;
	float alphaTo;
	float alphaCur;
	float alphaDt;

	float timeDt;
	float numFrame;
	float nextFrameDelay;

	bool isAlive;

public:

	ZoomEffect(float xCenter, float yCenter, float zoomFrom, float zoomTo, 
		float alphaFrom, float alphaTo, float timeLife, int numFrame, int width, int height);
	void Update();
	void Restart();
	~ZoomEffect();

	float GetZoom(){return zoomCur;}
	float GetAlpha(){return alphaCur;}
	bool GetIsAlive(){return isAlive;}
	
};

#endif